package com.afb

class Process {

    static belongsTo = Job

    long startProcessing
    long endProcessing

    Job job
    String name
    String description
    String input
    String output
    String status

//    Boolean started
//    Boolean finished

    static mapping = {
        input type: 'text'
        output type: 'text'
    }

    static constraints = {
        status(inList:["queued","processing","finished","error"])
    }

}